'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  router.get('/api/search/sugrec', controller.search.sugrec);
  router.get('/api/app/type', controller.app.type);
  router.get('/api/website/info', controller.app.websiteInfo);
  router.post('/api/create/website', controller.app.createWebsite);
  router.get('/api/website/list', controller.app.websiteList);
};
